tclXtSend

Section: C Library Functions (3)
Updated: 16 Oct 1993
Index Return to Main Contents
 

NAME

tclXtSend - the Tk "send" protocol for Xt  

SYNOPSIS


int TclXtSend_RegisterInterp(interp, name, toplevel)
    Tcl_Interp *interp;
    char *name;
    Widget toplevel;  

DESCRIPTION

This registers an interpreter using the name name. The name must be unique to the server. It takes a tcl interpreter and a toplevel widget as additional arguments. This creates two commands within the interpreter, send and interps.

The send command behaves like the send command for Tk: given an interpreter name and a command, it executes the command in that interpreter. The interpreter for the command may be the current interpreter.

The interps command returns a list of interpreters currently known to the server. Some of these may be dead. However, every registered interpreter should be in this list. That is, it includes every known interpreter, including some that no longer exist.  

RETURN VALUE

If the command succeeds in registering the interpreter under the name, it returns TCL_OK. Otherwise it returns TCL_ERROR. A string containing error information will be stored in interp->result.  

SEE ALSO

See the book on Tcl/Tk by John Ousterhout, or the Tk doco for "send".  

AUTHOR

Jan Newmarch, University of Canberra
(jan@ise.canberra.edu.au)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 04:18:47 GMT, December 02, 2024